import request from'./index.js'
// 游客登录
export const visitLogin = ()=>{
    return request('/release/register/anonimous','get')
}
// 生成erKey
export const getErKey= ()=>{
    return request('/release/login/qr/key','get',{
      timestamp:new Date().getTime()
    })
}
// ercode
export const getErCode= (key)=>{
    return request('/release/login/qr/create','get',{
      key,
      qrimg:" ",
      timestamp:new Date().getTime()
    })
}
// 检测是否扫码
export const getErState= (key)=>{
    return request('/release/login/qr/check','get',{
      key,
      timestamp:new Date().getTime()
    })
}
// 获取登录状态
export const getLoginState= ()=>{
    return request('/release/login/status','get')
}
// 获取用户详情 
export const getUserDetail= (uid)=>{
    return request('/release/user/detail','get',{uid})
}
// 获取用户信息 , 歌单，收藏，mv, dj 数量
export const getUserInfo= ()=>{
    return request('/release/user/subcount','get')
}
// 获取用户歌单
export const getUserOrder= (uid)=>{
    return request('/release/user/playlist','get',{uid,timestamp:Date.now()})
}
// 发送或删除评论
export const submitCommon= ({t=1,type=5,id,content,commentId})=>{
    return request('/release/comment','get',{t,type,id,content,commentId})
}